package com.authine.cloudpivot.ext.enums.order;

/**
 * @author Kris
 */
public enum TraceTypeEnum {
    /**
     * 物流类型
     */

    ShippingLogistics("发货物流",1),
    ReturnLogistics("退货物流",2);

    public String des;
    public Integer id;

    TraceTypeEnum(String des,Integer id) {
        this.des = des;
        this.id = id;
    }

    public static TraceTypeEnum switchNew(Integer type) {
        if (type.equals(1)) {
            return TraceTypeEnum.ShippingLogistics;
        }
        if (type.equals(2)) {
            return TraceTypeEnum.ReturnLogistics;
        }
        return null;
    }
}
